<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets" 
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:f="http://xmlns.jcp.org/jsf/core"
                xmlns:rich="http://richfaces.org/rich">

    <h:panelGrid columns="3" >

        <h:outputLabel value="#{bundle.teamName}:" for="teamName" />
        <h:inputText id="teamName" label="#{bundle.teamName}"
                     value="#{team.name}" size="40" maxlength="40"
                     required="true" 
                     requiredMessage="#{bundle.requiredValidationMessage}"
                     validatorMessage="#{bundle.lengthValidationMessage}" >
            <f:validateRequired />
            <f:validateLength minimum="1" maximum="40" />
            <rich:validator />
        </h:inputText>
        <rich:message for="teamName" />

        <h:outputLabel value="#{bundle.managerName}:" for="managerName" />
        <h:inputText id="managerName" label="#{bundle.managerName}"
                     value="#{team.managerName}" size="40" maxlength="40"
                     required="true" 
                     requiredMessage="#{bundle.requiredValidationMessage}"
                     validatorMessage="#{bundle.lengthValidationMessage}" >
            <f:validateRequired />
            <f:validateLength minimum="1" maximum="40" />
            <rich:validator />
        </h:inputText>
        <rich:message for="managerName" />

    </h:panelGrid>

</ui:composition>
